/*
 * @Descripttion:
 * @version:
 * @Author: 闫旭
 * @Date: 2021-01-05 11:47:55
 * @LastEditors: sueRimn
 * @LastEditTime: 2021-01-06 09:16:22
 */
$(function () {
  // 滑动阴影
  $(".group_news").on("mouseenter", "#news_list li", function () {
    var index = $(this).index();
    $(this)
      .addClass("active_news")
      .addClass("bor_none")
      .siblings()
      .removeClass("active_news")
      .removeClass("bor_none");

    $("#news_list li")
      .eq(index - 1)
      .addClass("bor_none");
    $(".group_news ul li:not(.bor_none)").css(
      "border-bottom",
      "1px solid #E5E5E5"
    );

    // 字体
    $(this).find(".group_news_title").addClass("col_common");
    $(this).siblings().find(".group_news_title").removeClass("col_common");

    // 图标切换
    if (
      $(this).find(".group_news_right_j > img").attr("src").indexOf("h_you") !=
      -1
    ) {
      $(this)
        .find(".group_news_right_j > img")
        .attr("src", "http://www.shandong-energy.com/images/icon_l_youjiantou.png");
      $(this)
        .siblings()
        .find(".group_news_right_j > img")
        .attr("src", "http://www.shandong-energy.com/images/icon_h_youjiantou.png");
    }
  });

});
